package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbUserConcernService;
import com.ge.modules.dao.TbUserConcernDao;
import com.ge.modules.entity.TbUserConcernEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbUserConcernServiceImpl implements TbUserConcernService {
	@Autowired
	private TbUserConcernDao userConcernDao;
	
	@Override
	public TbUserConcernEntity queryObject(Integer id){
		return userConcernDao.queryObject(id);
	}

	@Override
	public TbUserConcernEntity queryByObject(TbUserConcernEntity tbUserConcernEntity) {
		return userConcernDao.queryByObject(tbUserConcernEntity);
	}

	@Override
	public List<TbUserConcernEntity> queryList(Map<String, Object> map){
		return userConcernDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userConcernDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserConcernEntity userConcern){
		userConcernDao.save(userConcern);
	}
	
	@Override
	public void update(TbUserConcernEntity userConcern){
		userConcernDao.update(userConcern);
	}
	
	@Override
	public void delete(Integer id){
		userConcernDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userConcernDao.deleteBatch(ids);
	}
	
}
